#include "command.h"

void handling(command_t *cod, int netFD, MYSQL *conn, client_t *clt){
    switch(cod->command){
    case 1:
        command_cd(cod, netFD, conn, clt);
        break;
    case 2:
        command_ls(netFD, conn, clt);
        break;
    case 3:
        command_pwd(netFD, conn, clt);
        break;
    case 4:
        command_rm(cod, netFD, conn, clt);
        break;
    case 5:
        command_user_puts(cod, netFD, conn, clt);
        break;
    case 6:
        command_user_gets(cod, netFD, conn, clt);
        break;
    case 7:
        command_mkdir(cod, netFD, conn, clt);
        break;
    case 8:
        command_exit(netFD);
        break;
    }
}
